class Chess {
    constructor(name) {
        this.name = name;
    }

    static width = 50;  // 静态成员的写法

    static height = 50;

    static method() {
        console.log(this.width);
    }

    print() {
        
    }
}


// Chess.width = 50;
// Chess.height = 50;  // 可以直接赋值，但是这样写不好，和类分开了

console.log([Chess]);
console.log(Chess.width);
console.log(Chess.height);

Chess.method();


